package org.takeback.chat.lottery;

import java.math.BigDecimal;
import java.util.Date;

public class LotteryDetail {
	private Integer uid;
	private BigDecimal coin;
	private Date createDate;

	public LotteryDetail(Integer uid, BigDecimal coin) {
		this.uid = uid;
		this.coin = coin;
		this.createDate = new Date();
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Integer getUid() {
		return this.uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public BigDecimal getCoin() {
		return this.coin.setScale(2, 4);
	}

	public void setCoin(BigDecimal coin) {
		this.coin = coin;
	}

	public String toString() {
		return this.uid + "-" + this.coin;
	}
}
